﻿@using MakeWeekConcerts.Models
@using Microsoft.AspNet.Mvc.Facebook.Models
@using Microsoft.AspNet.Mvc.Facebook
@model IList<ConcertData>

<table class="table">
    @foreach (var concert in Model)
    {
        <tr>
            <td>
                <label><a href="@concert.EventUri">@concert.Name</a></label>
            </td>
            <td>
                @foreach (var artist in concert.Artists)
                {
                    <a target="_top" href="@GlobalFacebookConfiguration.Configuration.AppUrl@Url.Action("ArtistDetails", new { artistName = artist })">@artist</a>@Html.Raw(",&nbsp;")
                }
            </td>
            <td>
                @concert.Details
            </td>
            <td>
                <a href="@concert.EventLocationUri">@concert.EventLocationName</a>
            </td>
            <td>
                @concert.EventTimeStr
            </td>
            <td>
                @concert.EventLocationDetails
            </td>
        </tr>
    }
</table>